home *** CD-ROM | disk | FTP | other *** search
- From theseas!fs.Princeton.EDU!cek Tue, 9 Mar 93 01:37:34 EET
- Received: by kriton.UUCP (V1.16/Amiga)
- id AA00000; Tue, 9 Mar 93 01:37:34 EET
- Received: by theseas.ntua.gr with UUCP; Sun, 7 Mar 93 02:09:41 +0200
- Received: from mcsun.EU.net by pythia.ics.forth.gr via ITEnet with SMTP;
- id AA28029 (5.65c/FORTH-ICS-3.0-MHS-7.0); Sat, 6 Mar 1993 18:27:17 +0200
- Received: by mcsun.EU.net via EUnet
- id AA07579 (5.65b/CWI-2.209); Sat, 6 Mar 1993 17:24:14 +0100
- Received: from Princeton.EDU by relay1.UU.NET with SMTP
- (5.61/UUNET-internet-primary) id AA11511; Sat, 6 Mar 93 11:22:00 -0500
- Received: from fs.Princeton.EDU by Princeton.EDU (5.65b/2.95/princeton)
- id AA24624; Sat, 6 Mar 93 11:20:02 -0500
- Received: by fs.Princeton.EDU (4.1/1.105)
- id AA01694; Sat, 6 Mar 93 11:20:12 EST
- Received: from faui45.informatik.uni-erlangen.de by fs.Princeton.EDU (4.1/1.105)
- id AA01600; Sat, 6 Mar 93 11:19:08 EST
- Received: from faui43.informatik.uni-erlangen.de by uni-erlangen.de with SMTP;
- id AA16327 (5.65c-5/7.3r-FAU); Sat, 6 Mar 1993 17:19:04 +0100
- Received: by immd4.informatik.uni-erlangen.de;
- id AA20038 (5.65c-5/7.3m-FAU); Sat, 6 Mar 1993 17:19:03 +0100
- Message-Id: <199303061619.AA20038@faui43.informatik.uni-erlangen.de>
- Date: Sat, 6 Mar 93 17:19:02 MET
- In-Reply-To: <9303060020.AA38966@doorstop.austin.ibm.com>; from "Paul Chamberlain" at Mar 5, 93 6:20 pm
- X-Mailer: ELM [version 2.3 PL11]
- Errors-To: Princeton.EDU!cek
- Remailed-Date: Sat Mar 6 11:19:14 EST 1993
- From: "Michael Schroeder (Inf4 - hiwi)" <immd4.informatik.uni-erlangen.de!mlschroe>
- To: cs.Princeton.EDU!rayshade-users
- Subject: Re: deformed donuts
-
- >
- > Could someone run this through their version of rayshade and
- > confirm that it looks right on theirs before I go digging to
- > see why my version is screwing up.
- >
- > fov 5 torus 0.25 0.21 0 0 0 0 1 0
-
- It looks good with my rayshade version. Of course I have patched
- roots.c a little bit to make SolveCubic more stable (had the
- same problems a while ago).
-
- You can also fix the problem by defining a bigger torus and scaling
- it down.
-
- Michael.
-
- ---------------------------------------------------------------
- Michael Schroeder mlschroe@faui43.informatik.uni-erlangen.de
- main(a){while(a=~getchar())putchar(~a-1/(~(a|32)/13*2-11)*13);}
-
- *** roots.c.orig Sat Mar 6 17:06:43 1993
- --- roots.c Sat Jul 11 20:10:07 1992
- ***************
- *** 39,44 ****
- --- 39,45 ----
-
- #define EQN_EPS 1e-9
- #define IsZero(x) ((x) > -EQN_EPS && (x) < EQN_EPS)
- + #define IsZero2(x) ((x) > -EQN_EPS*EQN_EPS && (x) < EQN_EPS*EQN_EPS)
-
- #ifndef CBRT
- #define cbrt(x) ((x) > 0.0 ? pow((double)(x), 1.0/3.0) : \
- ***************
- *** 105,111 ****
- cb_p = p * p * p;
- D = q * q + cb_p;
-
- ! if (IsZero(D))
- {
- if (IsZero(q)) /* one triple solution */
- {
- --- 106,112 ----
- cb_p = p * p * p;
- D = q * q + cb_p;
-
- ! if (IsZero2(D))
- {
- if (IsZero(q)) /* one triple solution */
- {
-
- ----------
- Administrivia: rayshade-request@cs.princeton.edu
- Mailing list: rayshade-users@cs.princeton.edu
-
-